package online.takemehand.fx;

import javafx.application.Application;
import javafx.geometry.Rectangle2D;
import javafx.stage.Screen;
import javafx.stage.Stage;

public class Main3 extends Application {
    @Override
    public void start(Stage primaryStage) throws Exception {
        Screen screen = Screen.getPrimary();
        Rectangle2D bounds = screen.getBounds();
        Rectangle2D visualBounds = screen.getVisualBounds();

        System.out.println(bounds.getWidth());
        System.out.println(bounds.getHeight());

        System.out.println(visualBounds.getWidth());
        System.out.println(visualBounds.getHeight());

        System.out.println(screen.getDpi());

    }
}
